const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const UserType = {
  username: String,
  password: String,
  gender: Number,  // 性别 1 - 男性 2 - 女性
  introduction: String,
  avatar: String,
  role: Number  // 管理员 1 编辑 2
}

const UserModel = mongoose.model('user', new Schema(UserType, { versionKey: false }));
module.exports = UserModel;